package com.dunqi.gpm.shunqing.home.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.dunqi.gpm.shunqing.R;
import com.dunqi.gpm.shunqing.common.base.BaseAct;
import com.dunqi.gpm.shunqing.home.constance.Constance;
import com.dunqi.gpm.shunqing.home.fragment.UpListFragment;

public class UpListActivity extends BaseAct {

    long projectId;

    @Override
    protected void refreshData(Bundle savedInstanceState) {

    }

    @Override
    protected void initUiAndListener() {
        projectId = getIntent().getLongExtra(Constance.PROJECT_ID, 0);

        getSupportFragmentManager().beginTransaction()
                .replace(R.id.container, UpListFragment.newInstance(projectId))
                .commit();

    }


    @Override
    protected int getLayoutId() {
        return R.layout.activity_up_list;
    }


    public static void start(Context context, long projectId) {
        Intent intent = new Intent(context, UpListActivity.class);
        intent.putExtra(Constance.PROJECT_ID, projectId);
        context.startActivity(intent);
    }
}
